package old.day06;

public class MethodDemo {
    public static void main(String[] args) {
        aa();
        int[] c=test();
        for (int i = 0; i <10 ; i++) {

            System.out.println(c[i]);
        }

        int b=plus(5,7);
        System.out.println(b);

        double a=getnum();
        System.out.println(a);
        sayHello("乔星宇",22);
        sayhi("乔星宇");
        say();
        System.out.println("继续执行...");


    }
    public static void aa(){
        System.out.println("111");
        bb();
    }
    public static void bb(){
        cc();
        System.out.println("222");
    }
    public static void cc(){
        System.out.println("333");
    }
    public static int[] test(){
        int[] arr=new int[10];
        for (int i = 0; i < 10; i++) {
            arr[i]=(int) (Math.random()*100);
        }
        return arr;
    }
    public static int plus(int num1,int num2) {
        int num = num1 + num2;
        return num;
    }


    public static double getnum(){
        return 6.5;

    }
    public static void sayHello(String name,int age){
        System.out.println("大家好，我叫"+name+",今年"+age+"岁了");
    }
    public static void say(){
        System.out.println("乔星宇is大傻逼");
    }
    public static void sayhi(String name){
        System.out.println("大家好，我叫"+name+",是孔赟的好大儿！");
    }
}
